package com.microbroadcast.resource.manager;

import java.util.ArrayList;
import java.util.List;

import com.microbroadcast.resource.Area;
import com.microbroadcast.resource.Comment;
import com.microbroadcast.resource.Location;
import com.microbroadcast.resource.Message;
import com.microbroadcast.resource.UserBasic;

/*
 * This class manages the resource classes
 * 
 * Written by pansen at 2013/04/17
 * 
 */
public class ResourceManager {
	private static ResourceManager instance;
	@SuppressWarnings("rawtypes")
	private List<Class> resourceList;

	@SuppressWarnings("rawtypes")
	private ResourceManager() {
		resourceList = new ArrayList<Class>();
		resourceList.add(Message.class);
		resourceList.add(Comment.class);
		resourceList.add(Location.class);
		resourceList.add(UserBasic.class);
		resourceList.add(Area.class);
	}

	public synchronized static ResourceManager getInstance() {
		if (instance == null) {
			instance = new ResourceManager();
		}
		return instance;
	}

	@SuppressWarnings("rawtypes")
	public List<Class> getResourceList() {
		return resourceList;
	}
}